﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="CoinDetail.aspx.vb" Inherits="Crazyforcoins.CoinDetail" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajax:ToolkitScriptManager>
    <p>
        <br />
    </p>
    <b>Tags to this Category...!</b>
    <br />
    <asp:BulletedList ID="BulletedList1" runat="server" DataSourceID="SqlDataSource3"
        DataTextField="Tag" DataValueField="Tag">
    </asp:BulletedList>
    <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:CoinsConn %>"
        ProviderName="<%$ ConnectionStrings:CoinsConn.ProviderName %>" SelectCommand="SELECT DISTINCT [Tag], [ID] FROM [CoinsTagView] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:CoinsConn %>"
        ProviderName="<%$ ConnectionStrings:CoinsConn.ProviderName %>" SelectCommand="SELECT [Tag], [ID] FROM [CoinsTagView]">
    </asp:SqlDataSource>
    <br />
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
            DataSourceID="MyCoinsDb" Height="148px" Width="777px">
            <Columns>
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
                    <ControlStyle Height="180px" Width="180px" />
                </asp:ImageField>
                <asp:BoundField DataField="Category" HeaderText="Category" SortExpression="Category">
                    <ControlStyle Height="80px" Width="80px" />
                </asp:BoundField>
                <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description">
                    <ControlStyle Height="80px" Width="80px" />
                </asp:BoundField>
                <asp:HyperLinkField DataNavigateUrlFields="WebPage" DataNavigateUrlFormatString="{0}"
                    DataTextField="Category" HeaderText="WebLink" Text="WebLink">
                    <ControlStyle CssClass="imgsize" Height="30px" Width="30px" />
                </asp:HyperLinkField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#B8860B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </p>
    <p>
        &nbsp;</p><b>Category liking....!</b>  
        <br/>
    <asp:Image ID="img" runat="server" Height="35px" ImageUrl="~/Picture/like.jpg" Style="text-align: center"
        Width="55px" />
    <asp:Label ID="lbl_ImageCounts" runat="server" Text="Label" Font-Size="Medium" BorderStyle="Inset"
        Width="57px"></asp:Label>
    <br />
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<asp:Button ID="Btn_like" runat="server" Text="Like This Category"
        Width="133px" />
    <br />
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<asp:Label ID="lbl_like" runat="server" Text="You have liked it"
        BorderStyle="Dotted"></asp:Label>
    &nbsp
    <asp:Image ID="img_like" runat="server" ImageUrl="~/Picture/smiley.jpg" Style="text-align: center" />
    &nbsp;
    <br />
    <br />
     <b>No of views..!</b>
    <br />
    <br />
    <asp:Label ID="lbl_PageViews" runat="server" Text="Label" Font-Size="Medium" BorderStyle="Inset"
        Width="121px" Height="20px"></asp:Label>
    <br />
    <br />
        <b>Rate this category!</b>  
        <ajax:Rating ID="Ratn_Star" runat="server" BorderStyle="Solid" BorderWidth="1px"
            CurrentRating="0" EmptyStarCssClass="emptyRatingStar" FilledStarCssClass="filledRatingStar"
            Height="40px" StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar"
            Width="200px" OnChanged="RatingControlChanged" AutoPostBack="true">
        </ajax:Rating>
        <br/>
           <b>Average Rating of this Category.....!is   :</b>   <asp:Label ID="lbl_MyRating" runat="server" Text="Average Rating" Font-Bold="true"></asp:Label>
    <ajax:Rating ID="Ratn_avg" runat="server" BorderStyle="Solid" BorderWidth="1px" CurrentRating="0"
        EmptyStarCssClass="emptyRatingStar" FilledStarCssClass="filledRatingStar" Height="40px"
        StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar" Width="201px"
        ReadOnly="True">
    </ajax:Rating>
  
    
    
        <br />
        <b>New Tags Seperated by Comma</b><br />
        <asp:TextBox ID="tb_newTags" runat="server" Width="224px"></asp:TextBox>
    </p>
    <p>
        &nbsp;<asp:CheckBoxList ID="CheckBoxList1" runat="server" DataSourceID="SqlDataSource1"
            DataTextField="Tag" DataValueField="ID" RepeatDirection="Horizontal">
        </asp:CheckBoxList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:CoinsConn %>"
            ProviderName="<%$ ConnectionStrings:CoinsConn.ProviderName %>" SelectCommand="SELECT [ID], [Tag] FROM [Tags]">
        </asp:SqlDataSource>
        <asp:Button ID="Button2" runat="server" Text="Tag" Width="107px" />
        <br />
        <asp:SqlDataSource ID="MyCoinsDb" runat="server" ConnectionString="<%$ ConnectionStrings:CoinsConn %>"
            ProviderName="<%$ ConnectionStrings:CoinsConn.ProviderName %>" SelectCommand="SELECT * FROM [Coins] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <div style="overflow: auto; height: 300px">
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="CommentsDb"
                BorderColor="Tan" CellPadding="2" BackColor="LightGoldenrodYellow" BorderWidth="1px"
                ForeColor="Black" GridLines="None" Width="555px" Height="173px">
                <Columns>
                    <asp:TemplateField HeaderText="Comments">
                        <ItemTemplate>
                            <div style="background-color: White">
                                <i><b><span style="display: block; font-family: Times New Roman; font-size: medium">
                                   <asp:Image ID="Img_User" runat="server" ImageUrl='/Picture/Author.jpg' height="30" width="30" /> <%# Eval("Author")%></b></i>
                                <br />
                                </image></span> <b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                                    <%# Eval("Subject")%></b><br />
                                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                                <%# Eval("Message")%>
                                <br />
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <asp:SqlDataSource ID="CommentsDb" runat="server" ConnectionString="<%$ ConnectionStrings:CoinsConn %>"
            ProviderName="<%$ ConnectionStrings:CoinsConn.ProviderName %>" SelectCommand="SELECT [Author], [Subject], [Message] FROM [Comments] WHERE ([CoinsID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="CoinsID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <strong>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp ------
            Add Your Comment ------ </strong>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <i><b>Title</b></i>
        <br />
        <asp:TextBox ID="tb_subject" runat="server" Width="353px"></asp:TextBox>
    </p>
    <p>
        <i><b>Your Comment</b></i>
        <br />
        <asp:TextBox ID="tb_message" runat="server" Height="227px" TextMode="MultiLine" Width="350px"></asp:TextBox>
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="Button" Width="154px" />
    </p>
    <p>
        &nbsp;</p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
